package com.senlingspace.system.domain.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 订单地址
 *
 * @author lebronjames
 * @date 2024/10/05
 */
@Data
public class OrderAddressVo implements Serializable {

    @NotNull(message = "订单ID不能为空！")
    private Long orderId;

    /**
     * 101 到店自取，102 快递邮寄
     */
    @NotNull(message = "类型不能为空！")
    @Pattern(regexp = "101|102", message = "类型错误！")
    private Integer type;

    private Long addressId;

}
